package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 管理员角色
 * </p>
 *
 * @author yangyongchuan
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminRole extends Model<AdminRole> {

	private static final long serialVersionUID = -5667662509880282917L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 管理员ID
	 */
	private Integer adminId;

	/**
	 * 角色ID
	 */
	private Integer roleId;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
